package y23.Oct;

import java.util.ArrayList;
import java.util.Scanner;

public class Test26 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        StringBuffer str2 = new StringBuffer();
        for (int i = str1.length()-1; i >= 0; i--) {
            str2.append(str1.charAt(i));
        }
        System.out.println(str2);
    }
}
